<?php

namespace app\models;

use Yii;

/**
 * This is the model class for table "t_v_user_playlist".
 *
 * @property integer $id
 * @property string $snnumber
 * @property integer $playlistid
 * @property integer $status
 * @property string $createtime
 * @property integer $modifytime
 */
class TVUserPlaylist extends \yii\db\ActiveRecord
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 't_v_user_playlist';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['playlistid', 'status', 'modifytime'], 'required'],
            [['playlistid', 'status', 'modifytime'], 'integer'],
            [['createtime'], 'safe'],
            [['snnumber'], 'string', 'max' => 40],
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'id' => 'ID',
            'snnumber' => 'Snnumber',
            'playlistid' => 'Playlistid',
            'status' => 'Status',
            'createtime' => 'Createtime',
            'modifytime' => 'Modifytime',
        ];
    }
}
